@CHARSET "UTF-8";

label.ccay-Text-Ellipsis {
  word-break: break-all !important;
  white-space: nowrap !important;
  display: block;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/************************************ ccay-operate *******************************/

div.ccay-operate {
  width: 100%;
  text-align: center;
  margin: 15px 0;
}

/* @skin new 新增统一右上按钮宽度 */

.ccay-operate input {
  &[type='button'], &[type='reset'] {
    min-width: 65px;
  }
}

div.ccay-operate span {
  min-width: 65px;
}

.ccay-operate .button {
  padding: 0px !important;
}

/*div.ccay-operate input
{
    background: #f1f1f1 url('images/form/button_bg.gif') repeat-x left top;  
    height:19px;
    border:solid 1px #ccc;
    padding:0 4px;
    cursor: pointer;  
    margin-left:5px;
}
/* div.ccay-operate input:hover
{
   background :url('images/controls/button/btn_bg.png') repeat 0px -31px;
   border-color:#EABE4E;
   color: #16095e;
}  
div.ccay-operate input.disabled
{
   background:url('images/controls/button/btn_bg.png') repeat 0px -61px;
   border-color:#BABABC;
   color: #9FB5DD;
   cursor:not-allowed;
} */

/* div.ccay-grid-toolbar input
{
    background: #f1f1f1 url('images/form/button_bg.gif') repeat-x center center;  
    height:19px;
    border:solid 1px #ccc;
    padding:0 4px;
    cursor: pointer;  
    margin-left:5px;
} */
/************************************ ccay-table *******************************/

.ccay-table {
  width: 100%;
  border-collapse: collapse;
  th {
    border: solid 1px #d5d5d5;
    text-align: center;
    line-height: 24px;
    background: #F7F7F7;
  }
  td {
    border: solid 1px #d5d5d5;
    padding: 0px 5px;
    height: 21px;
    word-break: break-all;
  }
}

/* @skin 【word-break:break-all;文字换行】 */

.ccay-form {
  .ccay-table th {
    padding-left: 5px;
    width: 145px;
    text-align: left;
    font-weight: normal;
    height: 26px;
    background: #F8F8F8;
    font-size: 12px;
  }
  th {
    &.require, &.required {
      background: #F8F8F8 url('images/ccay.png') no-repeat 99% -374px;
      padding-right: 20px;
      width: 125px;
    }
  }
}

/* @skin 新增 */

.ccay-grid {
  margin-top: 10px;
}

/************************************ ccay-form *******************************/

.ccay-form {
  height: auto;
  margin-bottom: 5px;
  font-size: 0px\0;
  /*min-width:790px;*/
  * {
    font-size: 12px;
  }
}

.ccay-form-content {}

.ja-form textarea {
  resize: none;
}

div {
  &.ccay-form-body {
    border: solid 1px #d5d5d5;
    border-width: 1px 1px 0 0px;
    background: #fff url('images/hor_bg.png') repeat-y left bottom;
    width: 100%;
    display: table;
    display: inline-block\0;
  }
  &.ccay-form-bodymore {
    border-top-width: 0px;
  }
}

/* @skin 修改min-width:max-width:宽度 */
li.ccay-form-row {
  display: block;
  height: var(--theme-base-line-height);
  vertical-align: top;
  float: left;
  border-left: solid 1px #d5d5d5;
  overflow: hidden;
  word-break: break-all;
  white-space: nowrap;
  width: 49%;
  /* width: calc(50% - 2px);  */
  min-width: 320px;
  /*  border-bottom: 1px solid #d5d5d5; */
  max-width: 380px;
  /* min-width:380px;
  max-width:440px; */
  samp {
    width: $filed-width;
    text-align: left;
    float: left;
    display: block;
    height: ($line-height - 1px);
    line-height: ($line-height - 1px);
    padding-left: 5px;
    background-color: #F8F8F8;
    word-break: break-all;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: solid 1px #d5d5d5;
  }
  span.ccay-form-input {
    white-space: normal;
  }
  samp {
    .ccay-info-icon {
      float: right;
      margin-top: 4px;
      margin-right: 10px;
      line-height: 23px;
    }
    &.require .ccay-info-icon, &.required .ccay-info-icon {
      margin-right: -10px;
    }
  }
}

/*begin infotip help icon */

span.ccay-form-input .ccay-info-icon {
  line-height: 23px;
}

/*end infotip help icon */

li {
  &.ccay-form-row span.ccay-form-input {
    text-align: left;
    display: block;
    height: ($line-height - 2px);
    padding: 2px 0 0 4px;
    border-left: solid 1px #d5d5d5;
    margin-left: 147px;
    *margin-left: 0;
    label {
      word-break: break-all;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      display: block;
      line-height: 22px;
    }
  }
  &.ccay-form-longcell, &.ccay-form-range {
    /* max-width:881px;
    min-width:761px; */
    max-width: none !important;
    width: 99.8% !important;
  }
  &.ccay-form-longcell span.ccay-form-input {
    width: 600px;
    *width: auto;
  }
  &.ccay-form-range {
    span.ccay-form-input {
      background: url('images/ccay.png') no-repeat -400px -115px;
    }
    input[type='text'] {
      margin-right: 20px;
    }
  }
  &.ccay-form-srange {
    span.ccay-form-input {
      background: url('images/ccay.png') no-repeat -462px -115px;
    }
    input[type='text'] {
      margin-right: 16px;
      width: 70px;
    }
  }
  &.ccay-form-row input {
    &.longtxt {
      width: 90%;
    }
    &.ccay-user.longtxt, &.ccay-suggest.longtxt {
      width: 90%;
      padding-left: 2px;
      text-indent: 16px;
    }
  }
  &.ccay-form-more, &.ccay-form-whole {
    clear: both;
    width: 99.8% !important;
    border-bottom: solid 1px #d5d5d5;
    line-height: 27px;
    background-color: #F8F8F8;
    float: none;
    height: 27px;
    max-width: none !important;
  }
  &.ccay-form-more a {
    width: 100%;
    margin-left: 5px;
    padding-left: 12px;
    background: url('images/ccay.png') no-repeat -563px -86px;
    cursor: pointer;
    &.expend {
      background-position: -563px -52px;
    }
  }
  &.ccay-form-whole {
    height: auto;
    border-bottom: solid 1px #d5d5d5;
    background-color: #fff;
    *width: 99.8%;
    samp {
      white-space: normal;
      word-break: break-all;
      overflow: auto;
    }
    span.ccay-form-input {
      height: 81px;
      textarea {
        height: 70px;
        width: 99%;
      }
    }
    samp {
      height: 83px;
      border-bottom-width: 0px;
    }
  }
}

/*@skin new新增2个日历文本框右边一个的左边距
li.ccay-form-srange .dateCompare{
    margin-left:16px;
}*/

/* @skin new 新增编辑文本带图标文本框控制*/

/* li.ccay-form-more a:hover
{
    background-position: -563px -34px;
} */

/* li.ccay-form-more a.expend:hover
{
    background-position: -563px -70px;
} */

div.ccay-clear {
  clear: left;
  height: 0px;
}

li.ccay-form-whole span.ccay-form-input label {
  white-space: normal;
  word-break: break-all;
  overflow: auto;
}

div {
  &.ccay-form-custom {
    li.ccay-form-row label {
      white-space: normal;
      word-break: break-all;
      overflow: auto;
    }
    clear: both;
    width: 100%;
    border-right: solid 1px #d5d5d5;
    display: table;
  }
  &.ccay-form-custommore {
    border-top: solid 1px #d5d5d5;
  }
  &.ccay-form-custom {
    li {
      &.ccay-form-row {
        border-bottom: solid 1px #d5d5d5;
        height: auto;
        background: #fff url('images/hor_bg.png') repeat-y -2105px top;
        max-width: none;
        width: 99.8%;
      }
      &.ccay-form-inner {
        background-image: none;
      }
    }
    span.ccay-form-input {
      height: auto;
      padding-bottom: 2px;
      min-height: 25px;
    }
    li.ccay-form-blank {
      background-image: none;
    }
    samp {
      border-bottom-width: 0px;
      border-right: 1px solid #d5d5d5;
      width:$filed-width -2px;
    }
    div.ccay-form-body {
      width: 99.8%;
      display: table;
      li.ccay-form-row {
        background: #fff none;
        min-width: 320px;
        /* max-width:400px; */
        width: calc(50% - 2px);
      }
      samp {
        height: 27px;
      }
      span.ccay-form-input {
        height: 25px;
        padding-bottom: 0px;
      }
      li.ccay-form-whole {
        span.ccay-form-input {
          height: 81px;
        }
        samp {
          height: 83px;
        }
      }
    }
  }
}

.ccay-form samp {
  &.require, &.required {
    background: #F8F8F8 url('images/ccay.png') no-repeat 98% -368px;
    padding-right: 20px;
    width: $filed-width;
  }
}

/************************************ ccay-form narrow *******************************/

#c_layout.main-narrow {
  .ccay-form-row {
    min-width: 320px;
  }
  li.ccay-form-longcell span.ccay-form-input {
    width: 570px;
    *width: auto;
  }
}

/************************************ ccay-icon *******************************/

a {
  &.ccay-icon {
    height: $line-height - 7px;
    line-height:$line-height - 7px;
    cursor: pointer;
    font-size: $font-size + 3px;
    font-family: 'Glyphicons Halflings';
    margin-left:4px;
    vertical-align: middle;
    &.disabled {
      opacity: 0.20;
      filter: alpha(opacity = 20);
      color: #9FB5DD;
      cursor: not-allowed;
    }
  }
  &.ccay-link-btn {
    cursor: pointer;
    color: #2D6188;
    /* text-decoration: none; */
    margin-right: 4px;
    &:hover {
      color: #900;
      text-decoration: underline;
    }
    &:visited {
      color: #999;
    }
  }
  &.ccay-icon {
    &.nocursor {
      cursor: auto;
    }
    &.default:before {
      content: " ";
    }
    &.add:before {
      content: "\2b";
    }
    &.del:before {
      content: "\e020";
    }
    &.pre-del {
      font-family: "FontAwesome";
      &:before {
        content: "\f12d";
      }
    }
    &.edit:before {
      content: "";
    }
    &.save:before {
      content: "\e175";
    }
    &.import:before {
      content: "\e169";
    }
    &.export:before {
      content: "\e170";
    }
    &.search:before {
      content: "\e003";
    }
    &.view {
      font-family: "FontAwesome";
      &:before {
        content: "\f00e";
      }
    }
    &.replace:before {
      content: "\e178";
    }
    &.confirm:before, &.accept:before {
      content: "\e013";
    }
    &.cancel:before, &.reject:before {
      content: "\e014";
    }
    &.close {
      background-position: -260px 0px;
    }
    &.back:before {
      content: "\e091";
    }
    &.download:before {
      content: "\e197";
    }
    &.upload:before {
      content: "\e198";
    }
    &.end:before {
      content: "\e074";
    }
    &.reset:before {
      content: "\e030";
    }
    &.copy {
      font-family: "FontAwesome";
      &:before {
        content: "\f0c5";
      }
    }
    &.setting:before {
      content: "\e019";
    }
    &.screening {
      background-position: -320px -60px;
    }
    &.inquire {
      background-position: -340px -60px;
    }
    &.big-maximize {
      margin: 0 0 0 5px;
      background-position: -160px -200px;
    }
    &.small-maximize {
      margin-left: 5px;
      background-position: -180px -200px;
    }
    &.refresh {
      background-position: -20px -20px;
    }
    &.undo {
      background-position: -40px -20px;
    }
    &.undel:before {
      content: "\e115";
    }
    &.pager-first:before {
      content: "\e070";
    }
    &.pager-prev:before {
      content: "\e079";
    }
    &.pager-next:before {
      content: "\e080";
    }
    &.pager-last:before {
      content: "\e076";
    }
    &.pager-goto:before {
      content: "\e092";
    }
    &.sort {
      font-family: "FontAwesome";
      &:before {
        content: "\f0dc";
      }
    }
    &.asce {
      font-family: "FontAwesome";
      &:before {
        content: "\f0de";
      }
    }
    &.desc {
      font-family: "FontAwesome";
      &:before {
        content: "\f0dd";
      }
    }
    &.menu-downarrow {
      background-position: -160px -60px;
    }
    &.sort-asce:before {
      content: "\e155";
    }
    &.sort-desc:before {
      content: "\e156";
    }
    &.clear-filter {
      background-position: 0px -80px;
    }
    &.customize-filter {
      background-position: -20px -80px;
    }
    &.restore:before {
      content: "\e117";
    }
    &.run:before {
      content: "\e072";
    }
    &.pause:before {
      content: "\e073";
    }
    &.lock:before {
      content: "\e033";
    }
    &.tab-close:before, &.dialog-close:before {
      content: "\e014";
    }
    &.print:before {
      content: "\e045";
    }
    &.preview:before {
      content: "\e015";
    }
    &.execute:before {
      content: "\e072";
    }
    &.commission, &.key {
      background-position: -160px -100px;
    }
    &.enable:before {
      content: "\e006";
    }
    &.light {
      background-position: 0px -140px;
    }
    &.disable:before {
      content: "\e007";
    }
    &.die {
      background-position: -20px -140px;
    }
    &.yes {
      background-position: -40px -140px;
    }
    &.no {
      background-position: -60px -140px;
    }
    &.invalid {
      background-position: -80px -140px;
    }
    &.valid {
      background-position: -100px -140px;
    }
    &.on-line {
      background-position: -120px -140px;
    }
    &.leave {
      background-position: -140px -140px;
    }
    &.busy {
      background-position: -160px -140px;
    }
    &.off-line {
      background-position: -180px -140px;
    }
    &.status-new {
      background-position: 0px -160px;
    }
    &.status-draft {
      background-position: -20px -160px;
    }
    &.no-del {
      background-position: -40px -160px;
    }
    &.no-premission {
      background-position: -60px -160px;
    }
    &.menu-expend {
      background-position: 0px -180px;
    }
    &.menu-shrink {
      background-position: -20px -180px;
    }
    &.show:before {
      content: "\e105";
    }
    &.hidden:before {
      content: "\e106";
    }
    &.folder-closed:before {
      content: "\e117";
    }
    &.folder-opened:before {
      content: "\e118";
    }
    &.open {
      font-family: "FontAwesome";
      &:before {
        content: "\f196";
      }
    }
    &.close {
      font-family: "FontAwesome";
      &:before {
        content: "\f147";
      }
    }
    &.checked:before {
      content: "\e067";
    }
    &.unchecked:before {
      content: "\e157";
    }
    &.pre-checked {
      background-position: -40px -200px;
    }
    &.radio-checked {
      font-family: "FontAwesome";
      &:before {
        content: "\f192";
      }
    }
    &.radio-unchecked {
      font-family: "FontAwesome";
      &:before {
        content: "\f10c";
      }
    }
    &.panel-maximize:before {
      content: "\e140";
    }
    &.panel-minimize:before {
      content: "\2212";
    }
    &.panel-normal {
      font-family: "FontAwesome";
      &:before {
        content: "\f24d";
      }
    }
    &.link:before {
      content: "\e144";
    }
    &.test {
      background-position: -193px -100px;
    }
    &.admin {
      font-family: "FontAwesome";
      &:before {
        content: "\f21b";
      }
    }
    &.group {
      font-family: "FontAwesome";
      &:before {
        content: "\f0c0";
      }
    }
    &.log {
      background-position: -60px -240px;
    }
    &.help {
      background-position: -80px -240px;
    }
    &.warning {
      background-position: -100px -240px;
    }
    &.female {
      font-family: "FontAwesome";
      &:before {
        content: "\f221";
      }
    }
    &.male {
      font-family: "FontAwesome";
      &:before {
        content: "\f222";
      }
    }
    &.attachment:before {
      content: "\e142";
    }
    &.mail:before {
      content: "\2709";
    }
    &.msg:before {
      content: "\e111";
    }
    &.date:before {
      content: "\e109";
    }
    &.statistics:before {
      content: "\e185";
    }
    &.pic:before {
      content: "\e060";
    }
    &.flow {
      background-position: -280px -240px;
    }
    &.excel {
      font-family: "FontAwesome";
      &:before {
        content: "\f1c3";
      }
    }
    &.dot {
      background-position: (-320px) -240px;
    }
    &.gray-help {
      background-position: (-380px) -240px;
    }
    &.pin {
      background-position: 0px -260px;
    }
    &.unpin {
      background-position: (-20px) -260px;
    }
    &.active-infotip {
      background-position: (-60px) -260px;
    }
    &.callback:before {
      content: "\e115";
    }
    &.userpermission {
      background-position: (-80px) -262px;
    }
    &.updateinfo {
      background-position: (-104px) -262px;
    }
  }
  &.ccay-bigicon {
    background: url('images/icons.png') no-repeat 0 0;
    cursor: pointer;
    padding: 12px 40px 13px 0;
    margin-right: auto;
    margin-left: 4px;
    *display: inline-block;
    &.msg-success {
      background-position: 0px -340px;
    }
    &.msg-failure {
      background-position: -40px -340px;
    }
    &.msg-warning {
      background-position: -80px -340px;
    }
    &.msg-confirm {
      background-position: -120px -340px;
    }
    &.msg-forbid {
      background-position: -160px -340px;
    }
    &.big-export {
      background-position: 0px -380px;
    }
    &.big-import {
      background-position: -40px -380px;
    }
    &.big-apply {
      background-position: -80px -380px;
    }
    &.big-todo {
      background-position: -120px -380px;
    }
    &.big-permission {
      background-position: -160px -380px;
    }
    &.big-nopermission {
      background-position: -40px -340px;
    }
  }
}

/**************  new icons  edit by linshijian  2013-1-23  ****************/

/* @skin new 新增igrid上筛选图标 */

/* @skin new 新增igrid上查询图标 */

/* @skin new 角色最大化图标 */

/* @skin new 角色最小化图标 */

/************  ccay-bigicon ************/

/************************************ ccay-text *******************************/

input {
  &.ccay-calendar, &.ccay-user, &.ccay-suggest {
    width: 136px;
    padding-left: 16px;
    background: #FAFCFD url('images/ccay.png') no-repeat 0 0;
  }
  &.ccay-calendar {
    width: 132px;
    padding-left: 20px;
    background-position: -556px -143px;
  }
  &.ccay-user {
    background-position: -572px -17px;
  }
  &.ccay-suggest {
    background-position: -585px 0px;
  }
  &.ccay-money {
    width: 132px;
    padding-right: 20px;
  }
}

/* @skin new 有图标下拉框宽度样式 */

.dropdown-trigger {
  &.ccay-user, &.ccay-suggest {
    width: $filed-width;
  }
}

textarea {
  &.ccay-user {
    width: 80%;
    height: 120px;
    background: #FAFCFD url('images/ccay.png') no-repeat -573px -17px;
    text-indent: 16px;
    white-space: normal\0\9;
  }
  &.ccay-autosize {
    overflow-y: hidden;
    padding: 0px;
  }
  &.ccay-suggest, &.dropdown-trigger.ccay-suggest {
    width: 80%;
    height: 120px;
    background: #FAFCFD url('images/ccay.png') no-repeat -585px 0px;
    text-indent: 16px;
  }
}

/************************************ validate *******************************/

label.error {
  /*        color:red;
        margin-left:2px;
        font-style: italic; */
  position: absolute;
  color:$danger-color;
  top: 300px;
  left: 300px;
  display: block;
  z-index: 900;
  background: #ffcc66;
  box-shadow: 0px 0px 4px #000;
  -moz-box-shadow: 0px 0px 4px #000;
  -webkit-box-shadow: 0px 0px 4px #000;
  padding: 3px 6px;
  /* border-radius: 4px;
  -moz-border-radius: 4px;
  -webkit-border-radius: 4px; */
  filter: alpha(opacity = 80);
  opacity: 0.80;
  _width: 150px;
  white-space: normal !important;
  max-width: 400px;
  min-width: 100px;
  overflow: visible !important;
  word-break: break-all !important;
  min-height: 16px;
  line-height: 16px !important;
  width: auto !important;
  span.light {
    color: red;
    font-weight: bold;
  }
}

input.error, textarea.error, select.error {
  background-color: #ffcc66;
  border-color: #ff6600;
}

/************************************ ccay-table-panel *******************************/

.ccay-layout {
  overflow: hidden;
}

.ccay-layout-body {
  background-color: #d5d5d5;
  border: 1px solid #d5d5d5;
  width: 100%;
}

.ccay-layout-fixed {
  background-color: #fff;
  width: 300px;
  vertical-align: top;
  padding-right: 0px;
}

.ccay-layout-flow {
  background-color: #fff;
  vertical-align: top;
  .ccay-form-custom span.ccay-form-input {
    width: 60%;
  }
}

.ccay-layout-ul li {
  list-style-type: disc;
  list-style-position: inside;
  line-height: 22px;
}

/************************************ ccay-horRow *******************************/

ul.ccay-horRow {
  display: block;
  width: 100%;
  li.ccay-horRow-item {
    display: inline-block;
    float: left;
    line-height: $line-height;
    margin-right: 5px;
  }
}

/************************************ rate *******************************/

.ccay-data-rate {
  height: 20px;
  position: relative;
  top: 1px;
  text-align: left;
  .rate-chart {
    width: 0%;
    background-color: #90F880;
    height: 19px;
    filter: alpha(opacity = 50);
    opacity: 0.50;
    /* border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px; */
    &.danger {
      background-color: red;
    }
    &.warning {
      background-color: yellow;
    }
    &.normal {
      background-color: blue;
    }
    &.danger {
      background-color: red;
    }
    &.completed {
      background-color: purple;
    }
  }
  .rate-text {
    display: block;
    position: absolute;
    left: 40%;
    top: 0;
    height: 20px;
  }
}

.ccay-renderer-textarea {
  overflow-x: hidden;
  overflow-y: auto;
}

/*********************  ccay-button  add by linshijian 2013/1/26 ********************/
/* @skin background-color:默认按钮背景颜色 按钮font-size:font-weight:字体设置 */

.ccay-button {
  background-color: #f9f9f9;
  border: solid 1px #ccc;
  cursor: pointer;
  border-radius: 4px;
  display: inline-block;
  height: ($line-height - 7px);
  line-height: ($line-height - 7px);
  min-width: 65px;
  text-align: center;
  margin-left: 5px;
  padding: 0px;
  font-size: $font-size;
  font-weight: normal;
  /* vertical-align:bottom; */
  &:hover, &.default:hover {
    /* background-position: center -351px; */
    background-color: #fee040;
    border-color: #F2B22F;
  }
  label {
    margin-right: 5px;
    margin-left: 3px;
    cursor: pointer;
    vertical-align:top;
  }
}

/* @skin background-color:按钮悬停背景颜色 */

li.ccay-form-row .ccay-form-input .ccay-button label {
  display: inline-block;
  overflow: visible;
}

/* @skin background-color:默认触发按钮背景颜色 */

.ccay-button.default {
  /* background-position: center -327px; */
  background-color: #ddd;
  border-color: #000;
}

.textarea-maxlength {
  margin-top: -10px;
  display: block;
  text-align: right;
  > {
    span {
      color: #1688AD;
    }
    .only-count {
      margin: 0px 2px;
      font-weight: bold;
    }
  }
}

.ccay-pager-pagesize {
  height: 18px;
}

/**********鼠标指在流程图上未变手型***********/

#lnkShowImage {
  cursor: pointer;
  &:hover {
    cursor: pointer;
  }
}

.webix_dt_editor input {
  &.popup-clear {
    padding: 0 1px 2px 1px;
    *display: inline-block;
    cursor: pointer;
    float: left;
    width: 17px;
    height: 20px;
    line-height: 15px;
    margin: 1px 0 0 -36px;
    background-color: #e1e1e1;
    border: 1px solid #fff !important;
  }
}

#leftSiteMapTree.nobottom {
  border-bottom: none;
}

ul.ztree li.nomatchresult {
  text-align: center;
  line-height: 22px;
}

div.ccay-tree-filter {
  position: relative;
}

a.ccay-tree-filter-clear {
  position: absolute;
  top: 2px;
  right: 0px;
  height: 18px;
  line-height: 18px;
  width: 16px;
  text-align: center;
  text-decoration: none;
  font-size: 20px;
  display: none;
}